package kv

import (
	"clean/infra/config"
	"clean/infra/repo/db_itf"
)

// table key value
var mem = map[string]map[string][]byte{}

func Open(db string) map[string][]byte{
	if mem[db] == nil {
		mem[db] = map[string][]byte{}
	}
	return mem[db]
}

func InitMemoryRepo(cfg config.Config, initDbCb func(adapter db_itf.DbAdapter) error) (db_itf.DbAdapter, error) {

	return nil, nil
}
